package diagUMLmaki;

public class Liaison {
	
	private Etiquette et_dep;
	private Etiquette et_arr;
	private String nature;
	private String role;
	private String multiplicite;
	
	public Liaison(Etiquette et1, Etiquette et2, String nat, String role, String mult){
		
		this.et_dep = et1;
		this.et_arr = et2;
		this.nature = nat;
		this.role = role;
		this.multiplicite = mult;
		
	}
	
	public Liaison(Etiquette et1, Etiquette et2){
		
		this.et_dep = et1;
		this.et_arr = et2;	
		
	}
	
	public Liaison(Etiquette et1, Etiquette et2, String nat){
		
		this.et_dep = et1;
		this.et_arr = et2;
		this.nature = nat;
		
	}
	
	public Etiquette getEtDep(){
		return this.et_dep;
	}
	
	public Etiquette getEtArr(){
		return this.et_arr;
	}
	
	public String getNature(){
		return this.nature;
	}
	
	public String getRole(){
		return this.role;
	}
	
	public String getMult(){
		return this.multiplicite;
	}
	
	public void setEtDep(Etiquette et_dep){
		this.et_dep = et_dep;
	}
	
	public void setEtArr(Etiquette et_arr){
		this.et_arr = et_arr;
	}
	
	public void setNature(String nat){
		this.nature = nat;
	}
	
	public void setRole(String role){
	    this.role = role;
	}
	
	public void setMult(String mult){
		this.multiplicite = mult;
	}
	
	@Override
	public boolean equals(Object e) {
		if (e instanceof Liaison) {
			return( this.et_dep.equals(((Liaison) e).getEtDep()) && this.et_arr.equals(((Liaison) e).getEtArr()));
		}
		else return false;
	}


}
